/**
 * 定义ra中面板 ra的结果
 * name属性没有指定
 */
Ext.define('Risk.view.ra.RAResult', {
    extend: 'Ext.form.FieldSet',
    alias: 'widget.resultfieldSet',
    title: '计算结果',
    layout: 'vbox',
    autoShow: true,
    initComponent: function() {
      //初始化Window中的内容
    	this.items = [
           {
        	   xtype: 'label',
               text: '计算公式： Ra = Nd x Pa x La'
           },
           {
	        	readOnly : true,
	        	itemId:'Nd',
	        	xtype:'textfield',
	        	style:'color:red;background:none; border-right: 0px solid;border-top: 0px solid;border-left: 0px solid;border-bottom: #000000 1px solid;',
	        	fieldStyle:'background-color: #DDDDDD;color:red; background-image: none;',
	        	//TODO
	        	name:'nd',
	        	value:1,
	        	fieldLabel:'年平均危险次数：【Nd】'
           },
           {
	        	readOnly : true,
	        	itemId:'RA',
	        	xtype:'textfield',
	        	style:'color:red;background:none; border-right: 0px solid;border-top: 0px solid;border-left: 0px solid;border-bottom: #000000 1px solid;',
	        	fieldStyle:'background-color: #DDDDDD;color:red; background-image: none;',
	        	//TODO
	        	name:'raResult',
	        	value:1,
	        	vtype:'number',
	        	fieldLabel:'直接雷击建筑物人畜伤害风险分量【Ra】'
          },
          {
        	  xtype:'fieldcontainer',
        	  layout:'hbox',
				 items:[
				{
					 xtype: 'hiddenfield',
					 itemId:'td',
				     //name: 'td',
				     value: '1'
				},
				{
					 xtype: 'hiddenfield',
				     name: 'id'
				}
        	  ]
          }
        ];
        this.callParent(arguments);
    }
});